<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="insert-layer" style="display: none; padding: 20px">
    <form class="layui-form" action="addBook" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">图书名:</label>
            <div class="layui-input-inline">
                <input
                        type="text"
                        name="name"
                        lay-verify="required"
                        placeholder="请输入图书名"
                        autocomplete="off"
                        class="layui-input"
                />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">价格:</label>
            <div class="layui-input-block">
                <input
                        type="text"
                        name="price"
                        placeholder="请输入价格"
                        autocomplete="off"
                        class="layui-input"
                />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">作者:</label>
            <div class="layui-input-block">
                <input
                        type="text"
                        name="writer"
                        lay-verify="required"
                        placeholder="请输入作者名"
                        autocomplete="off"
                        class="layui-input"
                />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">分类:</label>
            <div class="layui-input-block">
                <input
                        type="text"
                        name="classify"
                        lay-verify="required"
                        placeholder="请输入分类"
                        autocomplete="off"
                        class="layui-input"
                />
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button
                        type="submit"
                        class="layui-btn"
                        lay-submit=""
                >
                    添加图书
                </button>
                <button type="reset" class="layui-btn layui-btn-primary">
                    重置
                </button>
            </div>
        </div>
    </form>
</div>

